
async function token(dbc,collection,query){
    
    let dbo = dbc.db('mongo');
    var where = query;
    var promise = dbo.collection(collection).findOne(where)
    return promise
}
module.exports = token